<?php return [
    'columns' => [
        'id' => [
            'type' => 'int',
            'length' => 10,
            'min' => 1,
            'required' => [
                'PATCH' => true,
                'DELETE' => true,
            ],
        ],
        'createdAt' => [
            'name' => 'created_at',
            'type' => 'timestamp',
        ],
        'updatedAt' => [
            'name' => 'updated_at',
            'type' => 'timestamp',
        ],
        'status' => [
            'type' => 'int',
            'length' => 1,
        ],
    ],
    'fields' => [
        'include' => '*',
        'exclude' => ['status']
    ],
    'query' => [
        'status' => [
            'GET' => 0,
            'PATCH' => 0,
            'DELETE' => 0,
        ],
    ],
    'data' => [
        'id' => [
            'PATCH' => null,
            'DELETE' => null,
        ],
        'createdAt' => [
            'POST' => null,
            'PATCH' => null,
            'DELETE' => null,
        ],
        'updatedAt' => [
            'POST' => null,
            'PATCH' => null,
            'DELETE' => null,
        ],
        'status' => [
            'POST' => 0,
            'DELETE' => 1,
            'PATCH' => null,
        ],
    ],
];
